[Silverlight, Navigation] Layout of elements added to a tabcontrol on a different navigation page wr

Posted by sinni800 on Stack Overflow See other posts from Stack Overflow or by sinni800
Published on 2010-05-23T12:00:16Z Indexed on 2010/05/23 12:00 UTC
Read the original article Hit count: 751

Hello,

I am developing a Silverlight client using the provided navigation template for an imageboard I developed.

I have a "search" tab which lists all searches for tags which were executed. I also have a show post tab which shows (also in tab-form) posts, opened from the search tab.

When I open a post from the search page, it instanciates a new control (of type UserControl) and inserts this into the ShowPost page's tabcontrol.

When I switch (or get switched) to the Show Post view the layout is all messed up. The UserControl inside the tab does not stretch in the tab. When I switch tabs back and forth this is strangely fixed.

The reason seems to be that the user control gets created there but has no layout to "fit to" until said layout is opened, which is too late then.

You can see it here:

http://aspbooru.tk/Silverlight/UI.aspx

Thank you in advance...

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about navigation